﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;
using TriviaDal;

namespace TriviaWCF
{
    // NOTE: You can use the "Rename" command on the "Refactor" menu to change the interface name "IService1" in both code and config file together.
    [ServiceContract]
    public interface IGameService
    {
        [OperationContract]
        List<QuestionCalss> GetQusetions(string Difficulty, string qtype);

        [OperationContract]
        List<AnswerCalss> GetAnsweres(List<int> questionsId);

        [OperationContract]
        bool InsertUser(string name, string password);

        [OperationContract]
        List<string> GetTopics();

        [OperationContract]
        List<string> GetDificulties();

        [OperationContract]
        bool IsTheAnswerRight(int answerId,int questionis);

        [OperationContract]
        List<UserClass> ReturnUsers();

        [OperationContract]
        int CalcAndGetScore(List<int> timeScore, string userNam, string password);

        [OperationContract]
        bool AddTopic(string topic);

        [OperationContract]
        bool AddDificulty(string difficulty);

        [OperationContract]
        int AddQuestion(QuestionCalss question);

        [OperationContract]
        void AddAnswers(List<AnswerCalss> answers);

        [OperationContract]
        int GetDifficultyId(string difficultyLevel);

        [OperationContract]
        int GetTypeId(string Typestring);

      
      
    }
}
